# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ratproxy
pkgver=1.58
pkgrel=6
groups=('blackarch' 'blackarch-fuzzer' 'blackarch-proxy' 'blackarch-scanner'
        'blackarch-webapp')
pkgdesc='A passive web application security assessment tool.'
url='http://code.google.com/p/ratproxy/'
license=('APACHE')
arch=('x86_64' 'aarch64')
source=("http://ratproxy.googlecode.com/files/$pkgname-$pkgver.tar.gz")
sha512sums=('4e6f5bb7e27cd87198d5d821c346c8e5489cbe17')

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 "$pkgname-report.sh" \
    "$pkgdir/usr/share/$pkgname/ratproxy-report.sh"
  install -Dm 644 doc/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  install -Dm 644 "$srcdir/$pkgname/$pkgname-back.png" \
    "$pkgdir/usr/share/$pkgname/$pkgname-back.png"
}

